<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <p>{{info}}</p>
    <!--v-text 让元素的文本内容和变量进行绑定-->
    <p v-text="'info='+info">p1</p>
    <!--v-html让元素的标签内容和变量进行绑定-->
    <p v-html="info">p2</p>
</div>
<script src="../vue.js"></script>
<script>
let v = new Vue({
    el: "div",
    data:{
        info:"测试文本<b>加粗内容</b>"
    }
})
</script>

</body>
</html>